package com.example.service.impl;

import java.io.UnsupportedEncodingException;

import javax.jws.WebService;

import org.springframework.stereotype.Component;

import com.example.service.DHWebService;

@WebService(serviceName = "dhWebService", // 对外发布的服务名
		targetNamespace = "http://service.example.com", // 指定你想要的名称空间，通常使用使用包名反转
		endpointInterface = "com.example.service.DHWebService")
@Component
public class DHWebServiceImp implements DHWebService {

	@Override
	public String getData(String param) {
		System.out.println("----------------param:" + param);
		return "success";
	}

}
